package com.dubbo.consumer.quickstart;

import com.alibaba.dubbo.config.annotation.Reference;
import com.dubbo.service.IOrderService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class QuickstartConsumer {
    @Reference(interfaceClass = IOrderService.class)
    private IOrderService orderService;

    @GetMapping(value = "test")
    public void test(){
        String temp = orderService.orderList("休息下");
        System.out.println(temp);
    }
}
